<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>
<script src="/js/seminar.js"></script>
<script type="text/javascript" src="/js/design.js"></script>

<script type="text/javascript">
$(document).ready(function(){
	$("select[name='deskCode']").change(function(){
		var deskCode = $(this).find("option:selected").val();
		//alert(deskCode);
		location.href = "/design/designList.desk?deskCode=" + deskCode;
	});
	
	$("#order").change(function(){
		$("#designList").attr('action','/design/designList.desk').submit();
	});
	
	$("#state").change(function(){
		$("#designList").attr('action','/design/designList.desk').submit();
	});

});
</script>
<link rel="stylesheet" type="text/css" href="/css/apply.css"/>

<s:url id="listURLPrev" value="/design/designList.desk">
	<s:param name="pageNumber">
		<s:property value="pageInfoDataMap.pageNumber - 1"/>
	</s:param>
	<s:param name="deskCode">
		<s:property value="deskCode"/>
	</s:param>
</s:url>

<s:url id="listURLNext" value="/design/designList.desk">
	<s:param name="pageNumber">
		<s:property value="pageInfoDataMap.pageNumber + 1"/>
	</s:param>
	<s:param name="deskCode">
		<s:property value="deskCode"/>
	</s:param>
</s:url>
<s:set name="currentPageNumber" value="pageNumber"/>

<s:set name="totalCount" value="%{totalCount}"/>
<s:set name="authCode" value="%{authCode}"/>
<s:set name="orgCode" value="#session.orgCode"/>

<form name="designList" id="designList" method="post">
<input type="hidden" name="deskCodeForExcel" value="<s:property value="#session.deskCode"/>"/>
<input type="hidden" name="userSeq" value="<s:property value="#session.userSeq"/>"/>
<input type="hidden" name="authCode" value="<s:property value="#session.authCode"/>"/>
<input type="hidden" name="orgCode" value="<s:property value="#session.orgCode"/>"/>
<input type="hidden" name="reportGubun" value="design"/>

<!-- 오른쪽 내용 시작 -->
      <dl class="Right_Contents_area">
        <dd class="Center_Top_title"> <span class="top_title"><img src="/images/report/design/SubContents_Tit_02.gif" width="370" height="42" alt="디자인출원 일지" /></span> <span class="top_navi">HOME > 업무보고 > 디자인출원 상담일지</span></dd>
        <dd class="Right_Contents_Search"><img src="/images/report/apply/SubContents_Tit_CenterChoice.gif" width="81" height="21" alt="센터선택" /></dd>
         <dd class="Right_Contents_SearchOption">
         <s:if test="%{#authCode == 'ADMIN'}">	<%// 통합 관리자인 경우, %>
        	<s:include value="/view/include/common/deskcode/deskcode_total.jsp"/>
   		</s:if>
   		<s:if test="%{#authCode != 'ADMIN'}"> <%// 통합 관리자가 아닌 경우 %>
   			<s:if test="%{#authCode == 'ADMIN_ORG'}"> <%// 소속 관리자인 경우 %>
   				<s:if test="%{#orgCode == 'KIPRA'}"> <%// 소속 관리자중에서 소속이 KIPRA인 경우 %>
   					<s:include value="/view/include/common/deskcode/deskcode_kipra.jsp"/>
   				</s:if>
   				<s:if test="%{#orgCode == 'KOTRA'}"> <%// 소속 관리자중에서 소속이 KOTRA인 경우 %>
   					<s:include value="/view/include/common/deskcode/deskcode_kotra.jsp"/>
   				</s:if>
   			</s:if>
   			<s:if test="%{#authCode == 'CONSULTANT'}"> <%// 컨설턴트인 경우 %>
   				<s:include value="/view/include/common/deskcode/deskcode_consultant.jsp"/>
   			</s:if>
   			<s:set name="dCode" value="%{deskCode}"/>
   		</s:if>
        </dd>
        <dd class="Right_Contents_Notice">총 <span class="TEXT_Red_Bold"><s:property value="#totalCount"/></span>건의 디자인출원 일지 정보 검색됨</dd>
        <dd class="Right_Contents_NoticeBtn"><img src="/images/notice/btn_ExelDown.gif" id="btn_excel_download" width="114" height="26" alt="엑셀다운로드" style="cursor:pointer"/></dd>
        <dd style="width:50px;position:relative;;margin:5px;">
        	<s:select name="year" id="year" list="#{'':'전체','2013':'2013','2012':'2012','2011':'2011'}"/>&nbsp;
        </dd>
        <dd style="width:70px;position:relative;;margin:5px;">
        	<s:select name="designSearchOption" id="designSearchOption" list="#{'localName':'업체명'}"/>&nbsp;
        </dd>
        <dd style="width:120px;position:relative;;margin:5px;">
        	<input type="text" name="designSearchKeyword" id="designSearchKeyword" value="<s:property value="designSearchKeyword"/>" style="width:110px;" maxlength="10"/>&nbsp;
        </dd>
        <dd style="width:164px;position:relative;margin:5px;">
        	<img src="/images/report/apply/btn_search.gif" width="47" height="22" alt="검색" id="btn_designSearch" />
        </dd>
        <dd style="text-align:right;position:relative;margin:5px;">
    		<label for="state">정렬 : </label>
        	<s:select name="order" id="order" list="#{'consultingDate':'신청일▼','consultingDate2':'신청일▲','localName':'업체명','emblem':'상표명', 'state':'상태' }" />
    	</dd>
        <dd style="width:150px;position:relative;margin:5px;">
    		<label for="state">상태 : </label>
        	<s:select name="state" list="#{'':'전체','STC10':'접수 완료','STC12':'검토 완료','STC13':'심사 완료','STC20':'출원완료','STC30':'등록완료'}" />
    	</dd>
        <dd class="Center_Top_contents">
          <div id="LIst_Zone">
            <dl>
              <dd>
                <table cellspacing="0" border="1" summary="글목록" class="Listboard">
                  <caption>글목록</caption>
                  <colgroup>
                  	<col width="55">
                  	<col width="1">
                  	<col width="190">
                  	<col width="1">
                  	<col width="290">
                  	<col width="1">
                  	<col width="83">
                  	<col width="1">
                  	<col width="98">
                  </colgroup>
                  <thead>
                    <tr>
                      <th scope="col">번호</th>
                      <th scope="col"><img src="/images/notice/board_line.gif" width="1" height="30" alt="" /></th>
                      <th scope="col">업체명</th>
                      <th scope="col"><img src="/images/notice/board_line.gif" width="1" height="30" alt="" /></th>
                      <th scope="col">상표명</th>
                      <th scope="col"><img src="/images/notice/board_line.gif" width="1" height="30" alt="" /></th>
                      <th scope="col">신청일</th>
                      <th scope="col"><img src="/images/notice/board_line.gif" width="1" height="30" alt="" /></th>
                      <th scope="col">상태</th>
                    </tr>
                  </thead>
                  <!-- 등록된 글이 없을때 나오는것 
                  <tbody>
                   <tr>
                     <td colspan="9">등록된 글이 없습니다.</td>
                   </tr>                                         
                  </tbody>
                  등록된 글이 없을때 나오는것 -->
                  <!-- 리스트 부분 -->
                  <tbody>
                    <s:if test="designList.size == 0">
                  		<tr>
                  			<td colspan="9" style="text-align:center">조회된 결과가 없습니다.</td>
                  		</tr>
                  	</s:if>
                    <s:if test="designList.size !=0">
                  		<s:iterator value="designList" status="stat">
		                    <tr>
		                      <td><s:property value="(#totalCount + 1 - ((pageInfoDataMap.pageNumber - 1) * pageInfoDataMap.countPerPage)) - (#stat.count)"/></td>
		                      <td><img src="/images/notice/board_line2.gif" width="1" height="24" alt="" /></td>
		                      <td class="tdTit">
		                      	<a href="/design/designDetail.desk?designSeq=<s:property value="designSeq"/>&pageNumber=<s:property value="#currentPageNumber"/>&deskCode=<s:property value="deskCode"/>"><s:property value="localName"/></a>
		                      </td>
		                      <td><img src="/images/notice/board_line2.gif" width="1" height="24" alt="" /></td>
		                      <td class="tdTit"><s:property value="emblem"/></td>
		                      <td><img src="/images/notice/board_line2.gif" width="1" height="24" alt="" /></td>
		                      <td><s:property value="consultingDate"/></td>
		                      <td><img src="/images/notice/board_line2.gif" width="1" height="24" alt="" /></td>
		                      <td>
		                      	<c:if test="${designState == 'STC10'}"><img src="/images/common/icon_01.gif" alt="본사 접수 완료"/></c:if>
		                      	<c:if test="${designState == 'STC11'}"><img src="/images/common/icon_01.gif" alt="센터 접수 완료"/></c:if>
		                      	<c:if test="${designState == 'STC12'}"><img src="/images/common/icon_02.gif" alt="검토 완료"/></c:if>
		                      	<c:if test="${designState == 'STC13'}"><img src="/images/common/icon_00.gif" alt="심사 완료"/></c:if>
		                      	<c:if test="${designState == 'STC20'}"><img src="/images/common/icon_03.gif" alt="출원 완료"/></c:if>
		                      	<c:if test="${designState == 'STC30'}"><img src="/images/common/icon_04.gif" alt="등록 완료"/></c:if>
		                      </td>
		                    </tr>     		
                  		</s:iterator>
                  	</s:if>  
                  </tbody>
                  <!-- 리스트 부분 -->
                </table>
              </dd>
               
            </dl> 
            <dl class="List_Page_area"><!-- 리스트 페이징 부분 -->
              <dd class="page_area">
                <div class="paginate">
                    <s:if test="pageInfoDataMap.startPage > pageInfoDataMap.pagePerBlock">
						<s:a href="%{listURLPrev}" cssClass="pre">이전페이지</s:a>
					</s:if>
			      	<c:forEach var="pageNum" begin="${pageInfoDataMap.startPage}" end="${pageInfoDataMap.endPage}">
						<c:choose>
							<c:when test="${pageNum != 0 && pageNum == pageInfoDataMap.pageNumber}">
								<strong>${pageNum}</strong>
							</c:when>
							<c:when test="${pageNum == 0 }">
							
							</c:when>
							<c:otherwise>
								<a href="<c:url value="/design/designList.desk?pageNumber=${pageNum}&deskCode=${deskCode}&state=${state }&year=${year }&order=${order }"/>"> ${pageNum} </a>
							</c:otherwise>
						</c:choose>
					</c:forEach>
			      	<s:if test="pageInfoDataMap.endPage < pageInfoDataMap.totalPageCount">
						<s:a href="%{listURLNext}" cssClass="next">다음페이지</s:a>
					</s:if>
                </div>               
              </dd>            
            </dl><!-- 리스트 페이징 부분 -->
            <dl class="List_Btn_area"><!-- 버튼 부분 -->
             <dd class="Left_Zone"><a href="/design/designList.desk?deskCode=<s:property value='#session.deskCode'/>"><img src="/images/notice/btn_list.gif" alt="목록" width="52" height="26" border="0" /></a></dd>
            <!--  <s:if test="#authCode != 'ADMIN' && #authCode != 'ADMIN_ORG'">
             	<dd class="Right_Zone"><a href="/design/designForm.desk"><img src="/images/report/design/btn_write2.gif" width="163" height="26" alt="디자인출원 상담일지 등록" border="0" /></a></dd>
             </s:if>-->
             <s:if test="#orgCode != 'KIPO'">
				  <s:if test="#session.deskCode == #dCode">
					<dd class="Right_Zone"><a href="/design/designForm.desk"><img src="/images/report/design/btn_write2.gif" width="152" height="26" alt="디자인출원 상담일지 등록" border="0" /></a></dd>
				 </s:if>
				 <s:if test="#authCode == 'ADMIN_ORG'">
					<dd class="Right_Zone"><a href="/design/designForm.desk"><img src="/images/report/design/btn_write2.gif" width="152" height="26" alt="디자인출원 상담일지 등록" border="0" /></a></dd>
				 </s:if>
				 <s:if test="#authCode == 'ADMIN'">
					<dd class="Right_Zone"><a href="/design/designForm.desk"><img src="/images/report/design/btn_write2.gif" width="152" height="26" alt="디자인출원 상담일지 등록" border="0" /></a></dd>
				 </s:if>
			 </s:if>
            </dl><!-- 버튼 부분 -->  
            <dl class="List_Btn_area"></dl> 
            <dl class="help">
              <dd class="tit">도움말</dd>
              <dd>
                <p>* 업무상태 관련 안내</p>
                <p>- 접수 완료 : 본사 또는 데스크에서 접수가 완료된 상태. 검토 이전의 단계.</p>
                <p>- 검토 완료 : 신청서와 구비서류에 대한 1차적인 검토가 완료된 상태. 심사 이전의 단계. </p>
                <p>
                	- 심사 완료 : 심사평가표가 첨부된 최종검토인 심사 완료의 단계. <br/> 
                	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                	심사 완료 상태가 되면, 해당 국가와 데스크를 지정하여 이관. 
                </p>
                <p>
                	- 출원 완료 : 출원서를 각국 특허청에 제출 완료한 경우 (출원접수증 교부 받은 경우)<br />
                	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                	단, 중국의 경우 수리 통지서를 접수한 이후인 경우
                </p>
                <p>- 등록 완료 : 각국 특허청에서 등록 수리가 완료되어, 등록증이 신청인(대리인)에게 교부된 상태</p>
              </dd>
            </dl><!-- 도움말 부분 -->         
          </div>
        </dd>
      </dl>
      <!-- 오른쪽 내용 끝 --> 
    </div>
  </div>
  <!-- center 나누어 지는 부분 끝 --> 
</div>
</form>


